﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:igDP="http://infragistics.com/DataPresenter"
	xmlns:ne="clr-namespace:Nucleo.Windows.Elements;assembly=Nucleo.Windows.WinFx" 
    x:Class="EventMonitor.Windows.HealthMonitoringWindow" 
    Title="Health Monitoring" Height="300" Width="300" xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid">
	<Grid>
		<StackPanel>
			<WrapPanel Margin="5">
				<Label Content="&lt; No Database Selected &gt;"/>
				<Button x:Name="SelectDatabaseButton" Click="SelectDatabaseButton_Click" Content="Select A Database"/>
				<Popup x:Name="SelectDatabasePopup" Placement="Center">
					<Grid>
						<ne:DatabaseConnection x:Name="DatabaseSelector" Background="LightGray" 
											   Submitted="DatabaseSelector_Submitted" Cancelled="DatabaseSelector_Cancelled" />				
					</Grid>
				</Popup>
			</WrapPanel>
			
			<xcdg:DataGridControl x:Name="WebEventItems"/>

			<!--<igDP:XamDataPresenter x:Name="WebEventItems">
				<igDP:XamDataPresenter.FieldLayoutSettings>
					<igDP:FieldLayoutSettings AutoGenerateFields="False"/>
				</igDP:XamDataPresenter.FieldLayoutSettings>
				<igDP:XamDataPresenter.FieldLayouts>
					<igDP:FieldLayout>
						<igDP:FieldLayout.Fields>
							<igDP:Field Name="EventTime" Label="Event Time">
								<igDP:Field.Settings>
									<igDP:FieldSettings CellWidth="50" />
								</igDP:Field.Settings>
							</igDP:Field>
							<igDP:Field Name="EventType" Label="Event Type">
								<igDP:Field.Settings>
									<igDP:FieldSettings CellWidth="50" />
								</igDP:Field.Settings>
							</igDP:Field>
							<igDP:Field Name="EventCode" Label="Event Code">
								<igDP:Field.Settings>
									<igDP:FieldSettings CellWidth="50" />
								</igDP:Field.Settings>
							</igDP:Field>
							<igDP:Field Name="ApplicationPath" Label="App Path">
								<igDP:Field.Settings>
									<igDP:FieldSettings CellWidth="100" />
								</igDP:Field.Settings>
							</igDP:Field>
							<igDP:Field Name="Message" Label="Message">
								<igDP:Field.Settings>
									<igDP:FieldSettings CellWidth="300" />
								</igDP:Field.Settings>
							</igDP:Field>
						</igDP:FieldLayout.Fields>					
					</igDP:FieldLayout>
				</igDP:XamDataPresenter.FieldLayouts>
				
				<igDP:XamDataPresenter.View>
					<igDP:GridView/>
				</igDP:XamDataPresenter.View>
			</igDP:XamDataPresenter>-->
		</StackPanel>
	</Grid>
</Window>
